package com.example.lib;

public class MyClass {
    public static void main(String[] args) {
        Duck duck = new RedheadDuck();
        duck.display();
        duck.performFly();
        duck.performQuack();

        //
        duck.performFly();
        duck.setFlyBehavior(new FlyNoWay());

    }
}